$ontext
UK electricity marekt simulation under
counterfactual carbon prices keeping
everything else constant 
$offtext

$if not set pcarb $abort "#### Cannot run carbon price simulation without a price ####";


pCO2(t) = %pcarb%;

GEN.FX(p,t)$(avail(p,t)*cap(p) eq 0) = 0;
merit_order.holdfixed = 1;
solve merit_order using LP minimizing COST;

$include report

execute_unload "%outdir%%scenario%_%pcarb%.gdx";